<template>
  <h1>初始页 vue3配置成功</h1>
  <test></test>
  <button @click="clickBtn">点击测试接口</button>
</template>
<script setup>
import { ref, reactive } from "vue";
import test from "@/components/test.vue";

import { getUserList } from "@/api/user";

function clickBtn() {
  getUserList()
    .then((res) => {
      console.log(res);
    })
    .catch((err) => {
      console.log(err);
    });
}
</script>
<style lang="scss" scoped></style>
